<template>
  <div class="card">
    <div class="card-header">
      {{ title }}
    </div>
    <div class="card-content-bg"></div>
    <div class="card-content">
      <slot name="content"></slot>
    </div>
  </div>
</template>
<script setup>
defineOptions({
  name: "AllCard",
  inheritAttrs: false,
});

const props = defineProps({
  title: {
    type: String,
    default: "",
  },
});
</script>
<style lang="scss" scoped>
.card {
  position: relative;
  width: 100%;
  height: 100%;
  /* background-color: rgba(0, 47, 71, 0.5); */
  transition: 0.5s;
}
.card-header {
  height: 38px;
  background: url("../../assets/images/bigscreen/xiaobiaoti.png") no-repeat;
  background-size: auto 100%;
  padding-left: 47px;
  display: flex;
  align-items: center;
  font-family: Alibaba PuHuiTi;
  font-size: 18px;
  color: #1c1c1c;
  font-style: italic;
}
.card-header_img {
  width: 100%;
}
.card-content {
  position: absolute;
  top: 38px;
  bottom: 0;
  left: 11px;
  right: 0;
  &-bg {
    position: absolute;
    top: 38px;
    bottom: 0;
    left: 11px;
    right: 0;
    background: linear-gradient(180deg, #bbcfe8, #d7e8f8);
    border-radius: 0px 0px 6px 6px;
    border: 1px solid;
    opacity: 0.4;
    border-image: linear-gradient(180deg, #5d92bf, #ffffff) 1 1;
    user-select: none;
  }
}
</style>
